<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#form1 #dateinbegin" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#form1 #dateinend" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
<style>
    #sel * {
        padding: 2px;
    }
</style>
<form action="/admini/manageadmin/knowlog/" method="get" style="margin:0px" id="form1">
    <div style="border:1px solid #DDDDDD; padding:5px; margin:20px 15px;" id='sel'>
        <label for="starttime">发布时间：</label><input type="text" id="dateinbegin" name="dateinbegin" value="<?php echo $this->dateinbegin; ?>" />
        <label for="endtime">--</label><input type="text" id="dateinend" name="dateinend" value="<?php echo $this->dateinend; ?>" />
        <input type="submit" id="queryButton" value="查询"/>
    </div>
</form>
<div class="dataTable">
    <table>  
        <tr>
            <th class="w1" width="10%">时间</th>
            <th class="w2" width="10%">来源</th>
            <th class="w3" >详情</th>
            <th class="w4" width="10%">添加人</th>
        </tr> 
        <?php foreach ($this->knowlogList as $Item) { ?> 
        <tr>
            <td class="w1" nowrap align="center"><?php echo $Item->DateCreated;?></td>
            <td class="w2" nowrap align="center"><?php echo $Item->TypeName;?></td>
            <td class="w3" nowrap align="left"><a href="<?php echo $Item->Url;?>" class="indexa" target="_blank">
                    <?php echo mb_strlen($Item->Content, 'utf-8') > 40 ? (mb_substr($Item->Content, 0, 40, 'utf-8') . '......') : $Item->Content;?></a></td>
            <td class="w6" nowrap align="center"><?php echo $Item->Operator;?></td>
        </tr>
        <?php } ?>
    </table>
</div>                
<div class="toolbar">
    <?php echo $this->partial('paging.phtml', array("pages" => $this->knowlogAll,"pamas"=>"")); ?>
</div>   
